package com.example.nacos;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.example.nacos.mapper")
public class Springboot3AlibabacloudNacosApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext app = SpringApplication.run(Springboot3AlibabacloudNacosApplication.class, args);
        String [] beanDefinitionNames = app.getBeanDefinitionNames();
        for(String beanDefinitionName : beanDefinitionNames){
            System.out.println("->" + beanDefinitionName);
        }
    }

}